<?php 
include ("Class/pzclass.php");
$clspzclass = new pz();
$a = $clspzclass->selectlocalpz();
if($_REQUEST['id_pzview'] != "")
{
	$id_pzedit = $_REQUEST['id_pzview'];
	$datafetch = $clspzclass->selectpzid($id_pzedit);
	$clspzclass->dbclose();
	
	}
?>


<table>
<tr>
<td>ID :</td><td><?php print $datafetch['id_pz'];?></td>
</tr>
<tr>
<td>Model :</td><td><?php print $datafetch['model'] ;?></td>
</tr>
<tr>
<td>Digit :</td>
<td><?php print $datafetch['digit']; ?></td>
</tr>
<tr>
<td>Serial no : </td>
<td><?php print $datafetch['Serialno']; ?></td>
</tr>
<tr>
<td>Linear gauge factor (G)</td><td><?php print $datafetch['Linear'] ;?></td>
</tr>
<tr>
<td>Capacity : </td><td><?php print $datafetch['capacity'] ;?></td>
</tr>
<tr>
<td> mH2O</td><td><?php print $datafetch['mH'] ;?> </td>
</tr>
<tr>
<td>Thermal factor (K)</td><td><?php print $datafetch['Thermalfactor'] ;?> </td>
</tr>
<tr>
<td>Cable length :</td><td><?php print $datafetch['Cablelength']; ?></td>
</tr>
<tr>
<td>Depth : </td><td><?php print $datafetch['depth'] ;?></td>
</tr>
<tr>
<td>A</td>
<td><?php print $datafetch['a'] ;?></td>
</tr>
<tr>
<td>B</td>
<td><?php print $datafetch['b']; ?></td>
</tr>
<tr>
<td>C</td>
<td><?php print $datafetch['c']; ?></td>
</tr>
<td>Localtion</td>
<td><label for="select"></label>
  <select name="pz" > 
<option>-----------------------</option>
<?php while($proid = mysql_fetch_array($a))
{ ?>
<option value="<?php echo $proid[id_local];?>" <?php if($proid[id_local] == $datafetch['location']) echo 'selected=selected' ?>><?php echo $proid[project];?>
  <?php 
  }
  ?>


</select>
</td>
</tr>
<tr>
<td colspan="2" align="center">&nbsp;</td>
</tr>

</table>

